<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>My JSP 'Training.jsp' starting page</title>
		<link rel="stylesheet"
			href="${pageContext.request.contextPath }/css/base.css" />
		<link rel="stylesheet"
			href="${pageContext.request.contextPath }/css/info-reg.css" />
		<script type="text/javascript"
			src="${pageContext.request.contextPath }/js/jquery.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath }/js/common.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath }/js/WdatePicker.js"></script>
	</head>
	<body>
		<form
			action="${pageContext.request.contextPath}/TrainMethod.action?method=insertTrain"
			method="post" runat="server">
			<div class="title">
				<h2>
					培训申请
				</h2>
			</div>
			<div class="main">
				<p class="long-input ue-clear">
					<label>
						培训人编号
					</label>
					<input type="text" placeholder="培训人姓名" name="userid"
						readonly="readonly" id="userid" />
					<input type="button" value="查找" onclick=findUser();>
				</p>
				<p class="long-input ue-clear">
					<label>
						培训人姓名
					</label>
					<input type="text" placeholder="培训人姓名" name="username"
						readonly="readonly" id="username" />
				</p>
				<p class="long-input ue-clear">
					<label>
						培训人部门
					</label>
					<input type="text" placeholder="培训人部门" name="userdept"
						id="deptname" readonly="readonly" />
				</p>
				<p>
					<label>
						时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间：
					</label>
					<div class="time-select" style="float: left">
						<input type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
							placeholder="开始时间" name="starttime"/>
					</div>
					<span class="line" style="float: left">-</span>
					<div class="time-select">
						<input type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
							placeholder="结束时间" name="endtime"/>
					</div>
				</p>
				<p class="long-input ue-clear">
					<label>
						培训类型
					</label>
					<select name="traintype">
						<option>前端制作</option>
						<option>后台开发</option>
						<option>项目测试</option>
						<option>外交公关</option>
						<option>人事管理</option>
					</select>
				</p>
				<p class="long-input ue-clear">
					<label>
						培训金额
					</label>
					<input type="text" placeholder="培训金额" name="trainingprice" />
				</p>
			</div>
			<div class="btn ue-clear">
				<input type="submit" value="提交申请"/>
				<input type="reset" />
			</div>
		</form>
	</body>
	<script type="text/javascript">
	function findUser() {
		window.open("${pageContext.request.contextPath }/TrainMethod.action?method=selectUser","","width=800,height=600");
	}
</script>
</html>
